{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="row top-search" style="margin:10px;">
	<form class="form-inline" method="post" action="{:url('admin/Addons/hooks')}">
		    <small>名称：</small>
		    <input type="text" class="rule-140" name="name" value="{$name}" placeholder="请输入钩子名称">
		     <button class="btn btn-xs btn-primary margin-left-10 btn-app btn-app-30">
				<i class="ace-icon fa fa-search bigger-100"></i>
				<span class="bigger-110 no-text-shadow" type="submit">搜索</span>
			</button>
	</form>
</div>
<div class="rows top-button col-sm-12">
     <p>
		<a class="btn btn-sm btn-warning" href="{:url('admin/Addons/addons_add')}">
			<i class="ace-icon fa fa-plus "></i>
			添加钩子
		</a>
	</p>
</div>
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<div class="row">
			<div class="col-xs-12">
				<table id="simple-table" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
							<th>ID</th>
							<th>钩子名称</th>
							<th class="hidden-480">描述</th>
							<th>类型</th>
							<th>挂在插件</th>
							<th class="hidden-480">添加时间</th>
							<th>操作</th>
						</tr>
					</thead>

					<tbody>
					  {foreach name="hooks" item="vo"}
						<tr>
							<td>{$vo.id}</td>
							<td>{$vo.name}</td>
							<td class="hidden-480">{$vo.description}</td>
							<td>{$vo.type?"视图":"控制器"}</td>
                            <td>{$vo.addons}</td>
							<td class="hidden-480">{$vo.addtime|date="Y-m-d H:i",###}</td>
							<td>
								<div class="hidden-sm hidden-xs btn-group">

									<a class="btn btn-xs btn-white  btn-info margin-left-10" title="修改钩子" href="{:url('admin/Addons/addons_edit',array('id'=>$vo.id))}">
										<i class="ace-icon fa fa-pencil bigger-120"></i>修改钩子
									</a>

									<a href="{:url('admin/Addons/addons_del')}" data-id="{$vo.id}" class="btn btn-xs btn-white  btn-danger margin-left-10 ajax_del" title="删除钩子">
										<i class="ace-icon fa fa-trash-o bigger-120"></i>删除钩子
									</a>
								</div>

								<div class="hidden-md hidden-lg">
									<div class="inline pos-rel">
										<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
											<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
										</button>

										<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">

											<li>
												<a  href="{:url('admin/Addons/addons_edit',array('id'=>$vo.id))}" class="tooltip-success" data-rel="tooltip" title="修改钩子">
													<span class="green">
														<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
													</span>
												</a>
											</li>

											<li>
												<a href="{:url('admin/Addons/addons_del')}" data-id="{$vo.id}" class="tooltip-error ajax_del" data-rel="tooltip" title="删除钩子">
													<span class="red">
														<i class="ace-icon fa fa-trash-o bigger-120"></i>
													</span>
												</a>
											</li>
										</ul>
									</div>
								</div>
							</td>
						</tr>
					  {/foreach}
					</tbody>
				</table>
			</div><!-- /.span -->
		</div><!-- /.row -->

		<div class="hr hr-18 dotted hr-double"></div>
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}
   </body>
</html>